package com.ymatou.iapi.sellerproduct.service;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class SetTopMoveCall  extends YmatouAutoTestCall {

	private static String opurl ="/api/AppProduct/SetTopMove";

	public SetTopMoveCall() {
		super(EnvSetup.getSystemUrl("sellerproduct_iapi"),opurl,"POST","JSON");
	}
	
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	public static void main(String[] args) {
		SetTopMoveCall aCall = new SetTopMoveCall();
		aCall.callAndGetReturnData(20336378,151097,"5b586982-43b4-45c8-8709-dedee3d97d90","5ca9c843-656e-4ee1-88f2-dba880511883");
	}
	
	public JSONObject callAndGetReturnData(int sellerId,int ActivityId,String firstProId,String secondProId){
		Map<String, Object> updateMap = new HashMap<String,Object>();
		updateMap.put("UserId", sellerId);
		updateMap.put("ActivityId", ActivityId);
		updateMap.put("FirstProductId", firstProId);
		updateMap.put("SecondProductId", secondProId);
		
		return callAndGetReturnData(updateMap);
	}

}